package sample.innerCls;

interface inf {
	void say();
}

public class returnInf {

	public inf SetInf() {
		return new inf() {

			@Override
			public void say() {
				System.out.println("SetInf say()");
			}

		};
	}

	public static void main(String[] args) {
		returnInf ri = new returnInf();
		inf Inf = ri.SetInf();
		Inf.say();
	}

}
